package com.zx.zxpicture.shared.websocket.disruptor;

import com.zx.zxpicture.shared.websocket.model.PictureEditRequestMessage;
import com.zx.zxpicture.domain.user.entity.User;
import lombok.Data;
import org.springframework.web.socket.WebSocketSession;

/**
 * 事件
 * disruptor队列中存储的就是这个
 */
@Data
public class PictureEditEvent {

    /**
     * 团队空间图片编辑消息
     */
    private PictureEditRequestMessage pictureEditRequestMessage;

    /**
     * 当前执行操作的用户的session
     */
    private WebSocketSession session;
    
    /**
     * 当前执行操作的用户
     */
    private User user;

    /**
     * 图片 id
     */
    private Long pictureId;

}
